package com.chaoyer.cynet.controller;

import com.chaoyer.cynet.common.annotation.Get;
import com.chaoyer.cynet.common.context.CyNetContext;
import com.chaoyer.cynet.common.domain.WebResult;
import org.springframework.stereotype.Controller;


/**
 * Created by lwc.
 * Description:
 * Date: 2018-05-17
 * Time: 下午10:42
 */
@Controller
public class DemoController {


    @Get("/demo")
    public WebResult demo(CyNetContext context) {

        Long num = context.queryParam("num").toLong();
        return WebResult.success(num);
    }

}
